import axios from "axios";
export function request(config) {

  const instance = axios.create({
    baseURL: 'XXXXXX',
    timeout: 5000
  })
  //
  instance.interceptors.request.use(config => {
    // console.log(config);
    return config
  },error => {
    console.log(error);
  })
  instance.interceptors.response.use(res => {
    // console.log(res.data);
    return res.data
  },error => {
    console.log(error);
  })
  return instance(config)
}
